
using SqlSugar;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Diagnostics.CodeAnalysis;

namespace CoreCms.Net.Model.Entities
{
    /// <summary>
    /// 订货会表
    /// </summary>
    [SugarTable("CoreShopOrderMeeting", TableDescription = "订货会表")]
    public partial class CoreShopOrderMeeting
    {
        /// <summary>
        /// 订货会表
        /// </summary>
        public CoreShopOrderMeeting()
        {
        }

        /// <summary>
        ///     订货会ID
        /// </summary>
        [Display(Name = "商品ID")]
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        [Required(ErrorMessage = "请输入{0}")]
        public int id { get; set; }
        /// <summary>
        ///     订货会名称
        /// </summary>
        [Display(Name = "订货会名称")]
        [Required(ErrorMessage = "请输入{0}")]
        [StringLength(maximumLength: 255, ErrorMessage = "{0}不能超过{1}字")]
        public string name { get; set; }


        /// <summary>
        /// 开始时间
        /// </summary>
        [Display(Name = "开始时间")]
        [Required(ErrorMessage = "请输入{0}")]
        public System.DateTime startdatetime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        [Display(Name = "结束时间")]
        [Required(ErrorMessage = "请输入{0}")]
        public System.DateTime enddatetime { get; set; }
        /// <summary>
        ///  封面图
        /// </summary>
        [Display(Name = "封面图")]
        [StringLength(255, ErrorMessage = "{0}不能超过{1}字")]
        public string image { get; set; }
        /// <summary>
        ///     图集
        /// </summary>
        [Display(Name = "图集")]
        public string images { get; set; }
        /// <summary>
        ///     图集
        /// </summary>
        [Display(Name = "描述")]
        public string describe { get; set; }
        /// <summary>
        ///     是否启用
        /// </summary>
        [Display(Name = "是否启用")]
        [Required(ErrorMessage = "请输入{0}")]
        public bool isShow { get; set; }

        /// <summary>
        ///     是否热门
        /// </summary>
        [Display(Name = "是否启用")]
        public bool isHot { get; set; }


        /// <summary>
        /// viewmodel（个人）是否有权限
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        [AllowNull]
        public bool isAllow { get; set; } = false;

   
    }
}